package com.ycsj.goldmedalnewconcept.common.util;

import android.widget.LinearLayout;
import android.widget.RelativeLayout;

/**
 * 返回布局管理参数的工具类
 * Created by Administrator on 2019/2/15 0015.
 */

public class LpUtils {

    /**
     * 获取线性布局管理参数
     * @param width
     * @param height
     * @return
     */
    public static LinearLayout.LayoutParams getLinearLp(int width, int height) {
        LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(width, height);
        return lp;
    }

    /**
     * 获取相对布局管理参数
     * @param width
     * @param height
     * @return
     */
    public static RelativeLayout.LayoutParams getRelatLp(int width, int height) {
        RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(width, height);
        return lp;
    }
}
